package com.itheima.generator;

//import com.baomidou.mybatisplus.generator.FastAutoGenerator;
//import com.baomidou.mybatisplus.generator.config.OutputFile;

import java.util.Collections;

public class CodeGenerator {
    static final String url = "jdbc:mysql://127.0.0.1:3306/big_event?characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8";
//    public static void main(String[] args) {
//        FastAutoGenerator.create(url, "root", "123456")
//                .globalConfig(builder -> {
//                    builder.author("yancy") // 设置作者
//                            .enableSwagger() // 开启 swagger 模式
//                            .outputDir("/Users/yihuan2018/IdeaProjects/big-event/src/main/java/com/itheima"); // 指定输出目录
//                })
//                .strategyConfig(builder -> {
//                    builder.addInclude("article")
//                            .addInclude("user")
//                            .addInclude("category"); // 设置需要生成的表名
//                }).execute();
//    }
}
